package com.ruoyi.message.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 消息用户关联对象 t_message_user
 *
 * @author Bandit
 * @date 2022-11-01
 */
public class TMessageUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息id */
    private Long messageId;

    /** 接收者id */
    private Long receiveUserId;

    /** 接收者姓名 */
    @Excel(name = "接收者姓名")
    private String receiveUserName;

    /** 是否已读，1已读 */
    @Excel(name = "是否已读，1已读")
    private Integer readed;

    public void setMessageId(Long messageId)
    {
        this.messageId = messageId;
    }

    public Long getMessageId()
    {
        return messageId;
    }
    public void setReceiveUserId(Long receiveUserId)
    {
        this.receiveUserId = receiveUserId;
    }

    public Long getReceiveUserId()
    {
        return receiveUserId;
    }
    public void setReceiveUserName(String receiveUserName)
    {
        this.receiveUserName = receiveUserName;
    }

    public String getReceiveUserName()
    {
        return receiveUserName;
    }
    public void setReaded(Integer readed)
    {
        this.readed = readed;
    }

    public Integer getReaded()
    {
        return readed;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("messageId", getMessageId())
            .append("receiveUserId", getReceiveUserId())
            .append("receiveUserName", getReceiveUserName())
            .append("readed", getReaded())
            .append("createTime", getCreateTime())
            .toString();
    }
}
